package org.example.service;

import org.apache.ibatis.annotations.Param;
import org.example.dto.StudentDto;
import org.example.pojo.Student;
import org.example.vo.StudentVo;

import java.util.List;

public interface StudentService {
    Integer addStudent(StudentVo studentVo);
    Integer updateStudent(StudentVo studentVo);
    Integer deleteStudent(Integer studentId);
    List<StudentDto> queryAllStudent();
    Integer countStudent();
    StudentDto queryStudentById(Integer studentId);
    StudentDto queryStudentByName(String studentName);
    List<StudentDto> queryStudentByDepartmentAndMajorAndGradeAndClass(@Param("department") String department, @Param("major") String major, @Param("grade") String grade, @Param("classes") String classes);
    Integer countStudentByDepartmentAndMajorAndGradeAndClass(@Param("department") String department, @Param("major") String major, @Param("grade") String grade, @Param("classes") String classes);


}
